package com.cloudfun.msglisten.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * Created by Huqin on 2020/4/1
 */
public interface ExternalRabbitConstants {

    interface Queue {
        /**
         * 对外
         */
        String DEVICE_STATUS_SUFFIX = "status";
        String DEVICE_FAULT_SUFFIX = "fault";
        String DEVICE_EVENT_SUFFIX = "event";
        List<String> SUFFIX_LIST = Arrays.asList(DEVICE_STATUS_SUFFIX,
                DEVICE_FAULT_SUFFIX, DEVICE_EVENT_SUFFIX);
    }

    /**
     * 交换机
     */
    interface Exchange {
        /**
         * 对外
         */
        String DEVICE_STATUS = "device.status";
        String DEVICE_FAULT = "device.fault";
        String DEVICE_EVENT = "device.event";
    }

}
